'use strict';
new Component({
  options: {
    addGlobalClass: true,
  },
  externalClasses: ['lee-class'],
  properties: {
    type: {
      type: String,
      value: '',
    },

    closabled: {
      type: Boolean,
      value: false,
    },

    translation: {
      type: String,
      value: '',
    },
  },
  data: {
    show: true,
    render: true,
  },
  methods: {
    close() {
      if (this.data.translation) {
        this.setData({ show: false });
      } else {
        this.setData({ show: false, render: false });
      }
    },

    onAnimationEnd() {
      this.setData({ render: false });
    },
  },
});
